package com.twetec.cms.model.vo.website;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.List;

@ApiModel
public class TemplateTreeItemVO implements Serializable {

    @JsonSerialize(using = ToStringSerializer.class)

    @ApiModelProperty(value = "标题(文件夹或文件名称)", example = "index.html")
    private String title;

    @ApiModelProperty(value = "fileInfo")
    private FileInfoVO fileInfo;

    @ApiModelProperty(value = "childList")
    private List<TemplateTreeItemVO> childList;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public FileInfoVO getFileInfo() {
        return fileInfo;
    }

    public void setFileInfo(FileInfoVO fileInfo) {
        this.fileInfo = fileInfo;
    }

    public List<TemplateTreeItemVO> getChildList() {
        return childList;
    }

    public void setChildList(List<TemplateTreeItemVO> childList) {
        this.childList = childList;
    }

    @Override
    public String toString() {
        return "TemplateTreeItemVO{" +
                "title='" + title + '\'' +
                ", fileInfo=" + fileInfo +
                ", childList=" + childList +
                '}';
    }
}
